import request from '@/util/ajax.js'

export function getRolesByGroupAPI(reqData) {
  return request({
    url: '/back_front/groups_roles/getRolesByGroupService',
    method: 'get',
    params: reqData
  })
}

export function changeRolesByGroupAPI(reqData) {
  return request({
    url: '/back_front/groups_roles/changeRolesByGroupService',
    method: 'post',
    data: reqData
  })
}

export function getGroupsByRoleAPI(reqData) {
  return request({
    url: '/back_front/groups_roles/getGroupsByRoleService',
    method: 'get',
    params: reqData
  })
}

export function changeGroupsByRoleAPI(reqData) {
  return request({
    url: '/back_front/groups_roles/changeGroupsByRoleService',
    method: 'post',
    data: reqData
  })
}
